﻿using System;
using System.Data;
using System.Data.OleDb;

using BizElements.Core.ProviderComponents;

namespace BizElements.Core.OleDb
{
    /// <summary>Builds <see cref="System.Data.OleDb.OleDbDataAdapter"/> objects.</summary>
    sealed class OleDbDataAdapterBuilder : IDataAdapterBuilder
    {
        public IDataAdapter BuildAdapter(IDbCommand cmd)
        {
            return new OleDbDataAdapter((OleDbCommand)cmd);
        }
    }
}